<?php
namespace app\console\model;
use think\Model;

/**
 *用户组model
 * */
class Group extends Model
{

    /**
     * 用户组列表
     * @param array $where
     * @return object
     * @author rainfer <1055213284@qq.com>
     */
    public static function page_lists($where)
    {
        return self::where($where)->where(['status'=>1,'is_del'=>0])->order('create_time desc,id desc')->paginate();
    }

    /**
     * 下拉选择用户组
     * @return object
     * @author rainfer <1055213284@qq.com>
     */
	public static function sel_lists(){
		return self::where(['status'=>1,'is_del'=>0])->field('id,group_name')->select();

	}

	
}